﻿<!--
 * # 模块 HTML:
 *  Outbox - 已发送的通知
 *
 * # 描述:
 *  提供发送新通知，删除通知，以及对所有已经发送通知的访问和操作。可以由最终用户或业务系统使用。
 *
 * Copyright (c), 上海沃恩信息科技有限公司.
 * All rights reserved.
 * Licensed under BSD (https://www.pittypat.work/bsd.html).
-->

<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <title>已发送的通知 | 通知</title>

    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
    <meta name="author" content="上海沃恩信息科技有限公司" />

    <link rel="icon" type="image/png" href="../app.png" />

    <link rel="stylesheet" href="../../../../mdc/material-components-web.min.css" />
    <link rel="stylesheet" href="../../../../css/pittypat.css" />
    <style>
        .pt-main {
            padding: 4px 16px;
        }

        .model-notification-ut {
            display: flex !important;
            align-items: center;
        }

        .model-notification-urgency {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 20px;
            width: 20px;
            font-size: 22px;
            margin-right: 8px;
        }

        .model-notification-urgency-1 {
            color: rgba(0, 0, 0, 0.38);
            color: var(--mdc-theme-text-icon-on-light,rgba(0, 0, 0, 0.38));
        }

        .model-notification-urgency-2,
        .model-notification-urgency-4 {
            color: #ff3d00;
            color: var(--mdc-theme-accent,#ff3d00);
        }

        .model-notification-receiver-face {
            border-radius: 50%;
        }

        .model-notification .pt-row-info {
            align-items: flex-start;
        }

        .model-notification-summary {
            overflow: visible !important;
            color: rgba(0,0,0,0.54);
            color: var(--mdc-theme-text-secondary-on-background, rgba(0,0,0,0.54));
        }

        #loaded-summary {
            margin: 16px 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        #load-more {
            background: none;
            border: none;
            padding: 0;
            margin: 0;
            display: none;
            justify-content: center;
            align-items: center;
        }

        #loaded-rows,
        #total-rows {
            color: rgba(0,0,0,0.54);
        }

            #loaded-rows::after {
                content: ' / ';
            }

        #list-time-from-label::before {
            content: '开始日期';
        }

        @media (min-width:480px) {
            #list-time-from-label::before {
                content: '日期范围';
            }
        }

        #details-body {
            overflow: visible;
            overflow-wrap: break-word;
            word-break: break-all;
            word-wrap: break-word;
            width: 100%;
            height: auto;
            line-height: 20px;
        }
    </style>
</head>
<body class="pt-nav-pinned">
    <!-- 页眉 -->
    <header>
        <section class="pt-page-toolbar">
            <button class="pt-nav-toggle mdc-ripple-surface" type="button" data-mdc-ripple-is-unbounded data-mdc-auto-init="MDCRipple">
                <i class="material-icons">menu</i>
            </button>
            <h1 class="pt-page-title">已发送的通知</h1>
            <button class="mdc-ripple-surface" data-target-dialog="#search-dialog" type="button" data-mdc-ripple-is-unbounded data-mdc-auto-init="MDCRipple">
                <i class="material-icons">search</i>
            </button>
            <button class="pt-nc-toggle mdc-ripple-surface" type="button" data-mdc-ripple-is-unbounded data-mdc-auto-init="MDCRipple">
                <i class="material-icons">chat_bubble_outline</i>
                <b></b>
            </button>
            <button class="pt-page-menu-toggle mdc-ripple-surface" type="button" data-mdc-ripple-is-unbounded data-mdc-auto-init="MDCRipple">
                <i class="material-icons">more_vert</i>
            </button>
            <div class="pt-page-menu mdc-simple-menu mdc-simple-menu--open-from-top-right" tabindex="-1">
                <div class="mdc-simple-menu__items mdc-list" role="menu" aria-hidden="true">
                    <a class="mdc-list-item pt-page-refresh" role="menuitem" tabindex="0">
                        <i class="material-icons mdc-list-item__start-detail">refresh</i>
                        <span>刷新页面</span>
                    </a>
                    <div class="mdc-list-divider" role="separator"></div>
                    <a class="mdc-list-item" role="menuitem" tabindex="0" href="help/index.html" target="_blank">
                        <i class="material-icons mdc-list-item__start-detail">help_outline</i>
                        <span>查看帮助</span>
                    </a>
                    <div class="mdc-list-divider pt-page-menu-logout-divider" role="separator"></div>
                    <a class="mdc-list-item pt-page-menu-logout" role="menuitem">
                        <i class="material-icons mdc-list-item__start-detail">power_settings_new</i>
                        <span>退出</span>
                    </a>
                </div>
            </div>
        </section>
    </header>

    <!-- 工作区 -->
    <main class="pt-main" role="main">
        <input type="hidden" id="list-page-index" value="1" />
        <input type="hidden" id="list-order-name" value="receivetime" />
        <input type="hidden" id="list-order-direction" value="desc" />
        <article class="pt-row">
            <header>
                <div class="pt-row-icon"></div>
                <div class="pt-row-info">
                    <div class="hidden-phone hidden-tablet">
                        <label>主题</label>
                    </div>
                    <div class="w-5 hidden-phone hidden-tablet">
                        <label>分组</label>
                    </div>
                    <div class="w-12 hidden-phone hidden-tablet">
                        <label>接收人</label>
                    </div>
                    <div class="w-9">
                        <a class="pt-order-field" data-order-name="receivetime" data-order-direction="desc">
                            <label>发送时间</label>
                            <i class="material-icons">arrow_drop_up</i>
                        </a>
                    </div>
                </div>
                <div class="pt-row-more">
                    <i></i>
                </div>
            </header>
            <section class="mdc-elevation--z1" id="notifications"></section>
        </article>

        <div id="loaded-summary">
            <div><span id="loaded-rows">0</span><span id="total-rows">0</span></div>
            <button id="load-more" class="mdc-ripple-surface mdc-ripple-surface--primary mdc-theme--primary" type="button" data-mdc-ripple-is-unbounded data-mdc-auto-init="MDCRipple">
                <i class="material-icons">more_horiz</i>
            </button>
        </div>
    </main>

    <!-- 对话框 -->
    <div class="pt-menus-dialogs">
        <!-- 搜索对话框 -->
        <div class="mdc-dialog small-dialog" id="search-dialog">
            <article class="mdc-dialog__surface">
                <section class="mdc-dialog__body mdc-dialog__body--scrollable" id="search-dialog-body">
                    <div class="pt-fields pt-fields-horiz">
                        <div class="pt-field">
                            <label>
                                <b id="list-time-from-label"></b>
                                <input type="date" id="list-time-from" autocomplete="off" />
                            </label>
                        </div>
                        <hr />
                        <div class="pt-field">
                            <label>
                                <b class="hidden-desktop hidden-tablet">截止日期</b>
                                <input type="date" id="list-time-to" autocomplete="off" />
                            </label>
                        </div>
                    </div>
                    <div class="pt-fields">
                        <div class="pt-field">
                            <label>
                                <b>接收人</b>
                                <input type="text" id="list-receiver-name" maxlength="50" required autocomplete="off" />
                            </label>
                        </div>
                        <div class="pt-field">
                            <label>
                                <b>主题</b>
                                <input type="text" id="list-title" maxlength="50" autocomplete="off" />
                            </label>
                        </div>
                    </div>
                </section>
                <footer class="mdc-dialog__footer">
                    <a class="pt-dialog-footer-help" href="help/index.html#search" target="_blank">
                        <i class="material-icons">help_outline</i>
                    </a>
                    <div></div>
                    <button type="button" class="mdc-button mdc-dialog__footer__button" id="reset-search">重置</button>
                    <button type="button" class="mdc-button mdc-dialog__footer__button mdc-button--primary" data-ok>搜索</button>
                </footer>
            </article>
            <div class="mdc-dialog__backdrop"></div>
        </div>

        <!-- 详细对话框 -->
        <div class="mdc-dialog" id="details-dialog">
            <article class="mdc-dialog__surface">
                <section class="mdc-dialog__body mdc-dialog__body--scrollable" id="details-dialog-body">
                    <div class="pt-fields">
                        <div class="pt-field">
                            <label>
                                <b>主题</b>
                                <input type="text" id="details-title" readonly autocomplete="off" />
                            </label>
                        </div>
                        <div class="pt-field">
                            <label>
                                <b>紧急程度</b>
                                <i class="material-icons model-notification-urgency model-notification-urgency-1" id="details-urgency-icon">star_border</i>
                                <input type="text" id="details-urgency-name" readonly autocomplete="off" />
                            </label>
                        </div>
                        <div class="pt-field">
                            <label>
                                <b>接收人</b>
                                <input type="text" id="details-receiver-name" readonly autocomplete="off" />
                            </label>
                        </div>
                        <div class="pt-field">
                            <label>
                                <b>分组</b>
                                <input type="text" id="details-group" readonly autocomplete="off" />
                            </label>
                        </div>
                        <div class="pt-field">
                            <label>
                                <b>发送时间</b>
                                <input type="text" id="details-receive-time" readonly autocomplete="off" />
                            </label>
                        </div>
                        <div class="pt-field">
                            <label>
                                <b>附件</b>
                                <s id="details-attachment-name"></s>
                            </label>
                        </div>
                        <div class="pt-field">
                            <p id="details-body"></p>
                        </div>
                    </div>
                </section>
                <footer class="mdc-dialog__footer">
                    <a class="pt-dialog-footer-help" href="help/index.html#details" target="_blank">
                        <i class="material-icons">help_outline</i>
                    </a>
                    <div></div>
                    <button type="button" class="mdc-button mdc-dialog__footer__button" data-cancel>关闭</button>
                </footer>
            </article>
            <div class="mdc-dialog__backdrop"></div>
        </div>
    </div>

    <!-- 导航列表 -->
    <nav class="pt-nav">
        <article class="pt-nav-panel">
            <header>
                <div class="pt-nav-toolbar">
                    <a class="mdc-ripple-surface" data-mdc-ripple-is-unbounded data-mdc-auto-init="MDCRipple" href="../../../../index.html" title="返回首页">
                        <i class="material-icons">home</i>
                    </a>
                    <a class="pt-nav-refresh mdc-ripple-surface" data-mdc-ripple-is-unbounded data-mdc-auto-init="MDCRipple" title="刷新导航">
                        <i class="material-icons">update</i>
                    </a>
                    <a class="pt-nav-pin mdc-ripple-surface" data-mdc-ripple-is-unbounded data-mdc-auto-init="MDCRipple" title="取消固定导航">
                        <i class="material-icons">call_received</i>
                    </a>
                </div>
                <div class="pt-nav-userbar">
                    <a href="../../../waln/authority/profile/index.html">
                        <i class="material-icons">account_circle</i>
                        <b>未登录</b>
                    </a>
                </div>
            </header>
            <section></section>
        </article>
        <!-- 导航列表的背景，不要移除该元素 -->
        <div></div>
    </nav>

    <!-- 通知中心 -->
    <aside class="pt-nc">
        <article class="pt-nc-panel">
            <header>
                <a class="pt-nc-close mdc-ripple-surface" data-mdc-ripple-is-unbounded data-mdc-auto-init="MDCRipple" data-nc-close>
                    <i class="material-icons">close</i>
                </a>
                <h1>通知中心</h1>
                <a class="mdc-ripple-surface" data-mdc-ripple-is-unbounded data-mdc-auto-init="MDCRipple" href="../../../waln/notifying/inbox/list.html" title="所有已接收">
                    <i class="material-icons">inbox</i>
                </a>
            </header>
            <section></section>
        </article>
        <!-- 通知中心的背景，不要移除该元素 -->
        <div></div>
    </aside>

    <script src="../../../../js/jquery.min.js"></script>
    <script src="../../../../mdc/material-components-web.min.js"></script>
    <script src="../../../../js/pittypat.js"></script>
    <script src="_api.js"></script>
    <script src="list.js"></script>
</body>
</html>